package com.qiaofang.applet.service.other.service;

import com.qiaofang.applet.common.base.BaseService;
import com.qiaofang.applet.service.other.domain.MessageList;
import com.qiaofang.applet.service.other.domain.YxImMessage;
import com.qiaofang.applet.service.other.service.dto.MessageListQueryDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 网易云信im历史消息
 * @author junze.liu
 */
public interface YxImMessageService extends BaseService<YxImMessage, String> {

    /**
     * 保存云信im历史消息
     * @param receiveMsg
     */
    void saveByReceiveMsg(String receiveMsg);

    /**
     * 微聊列表条件查询
     * @param queryDto
     * @param pageable
     * @return
     */
    Page<MessageList> findMessageListByParam(MessageListQueryDto queryDto,Pageable pageable);

    /**
     * 微聊查询数据导出
     * @param queryDto
     * @return
     */
    List<MessageList> findMessageListByParam(MessageListQueryDto queryDto);

    void opYxImMessage(String corporationCode);
}
